<template>
  <div class="login_contcainer">
    <!-- 登录导航栏-->
    <van-nav-bar class="page-nav-bar"  title="登录" />
    <!-- 登录导航栏-->
    <!-- 登录表单-->
    <van-form @submit="onSubmit">
      <van-field
        v-model="username"
        left-icon="like-o"
        name="用户名"
        placeholder="请输入手机号"
      />
      <van-field
        v-model="password"
        type="password"
        name="密码"
        placeholder="请输入验证码"
      />
      <div style="margin: 16px;">
        <van-button block type="info" native-type="submit">登录</van-button>
      </div>
    </van-form>
    <!-- 登录表单-->
  </div>
</template>

<script>
export default {
  name:'loginindex',
  data(){
    return{
      username:'',
      password:'',
    }
  },
  methods:{
    onSubmit(values){
      console.log('submint',values);
    }
  }
}
</script>

<style lang="stylus" scoped>
  .page-nav-bar
    background #387ef5
  /deep/ .van-ellipsis {
    color: #ffffff;
    background:#bule;
  }
</style>
